package mfuny.ggongal.admin;

import mfuny.ggongal.admin.ship.ShipService;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class ShipController {
	ShipService ship;
	
	public ShipController() throws Exception {
		ship = new ShipService();
	}
	
	@RequestMapping("/inputInvoiceNum.ga")
	public ModelAndView inputInvoiceNum() throws Exception {
		return ship.inputInvoiceNum();
	}
	
	@RequestMapping("/inputInvoiceNum_leftForDays.ga")
	public ModelAndView inputInvoiceNum_leftForDays(String days) throws Exception {
		return ship.inputInvoiceNum_leftForDays(days);
	}
	
	@RequestMapping("/inputInvoiceNum_rightForDays.ga")
	public ModelAndView inputInvoiceNum_rightForDays(String days, int time) throws Exception {
		return ship.inputInvoiceNum_rightForDays(days, time);
	}
	
	@RequestMapping("/setInvoice.ga")
	public ModelAndView setInvoice(String param) throws Exception {
		return ship.setInvoice(param);
	}
}
